import { httpGet } from "../service/request";

// 轮播
export function getBanners() {
  return httpGet("/health/share/v1/bannersShow");
}

// 知识库
// 病症 左侧 标题列表
export function getDiseaseTitle() {
  return httpGet("/health/share/knowledgeBase/v1/findDepartment");
}
// 病症 右侧 内容列表
export function getDiseaseContent(departmentId: number) {
  return httpGet("/health/share/knowledgeBase/v1/findDiseaseCategory", {
    departmentId,
  });
}

// 药品 左侧 标题列表
export function getDrugTitle() {
  return httpGet('/health/share/knowledgeBase/v1/findDrugsCategoryList')
}
// 药品 右侧 内容列表
export function getDrugContent(data: { drugsCategoryId: number, page: number, count: number }) {
  return httpGet('/health/share/knowledgeBase/v1/findDrugsKnowledgeList', data)
}

// 列表标题
export function getListTitle() {
  return httpGet('/health/share/information/v1/findInformationPlateList')
}

// 列表
export function getList(params: { plateId: number, page: number, count: number }) {
  return httpGet('/health/share/information/v1/findInformationList', params)
}
// 列表详情
export function getListDetail(infoId: number) {
  return httpGet('/health/share/information/v1/findInformation', { infoId })
}